package com.chart.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chart.common.annotation.DataScope;
import com.chart.common.constant.UserConstants;
import com.chart.common.core.domain.entity.SysDemand;
import com.chart.common.core.domain.entity.SysRole;
import com.chart.common.core.domain.entity.SysUser;
import com.chart.common.exception.ServiceException;
import com.chart.common.utils.SecurityUtils;
import com.chart.common.utils.StringUtils;
import com.chart.common.utils.spring.SpringUtils;
import com.chart.system.domain.SysRoleDept;
import com.chart.system.domain.SysRoleMenu;
import com.chart.system.domain.SysUserDemand;
import com.chart.system.domain.SysUserRole;
import com.chart.system.mapper.*;
import com.chart.system.service.ISysRoleService;
import com.chart.system.service.ISysUserDemandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.*;

/**
 * 角色 业务层处理
 * extends ServiceImpl<SysRoleMapper, SysRole>
 * @author chart
 */
@Service
public class SysUserDemandServiceImpl extends ServiceImpl<SysUserDemandMapper, SysUserDemand> implements ISysUserDemandService
{
    @Autowired
    private SysUserDemandMapper userDemandMapper;
    @Override
    public List<SysDemand> getDemandList(Long userId) {
        return userDemandMapper.getDemandList(userId);
    }
}
